entry: Use a label as placeholder
authorTimm Bäder <mail@baedert.org>
Fri, 18 Jan 2019 09:47:16 +0000 (10:47 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 18 Jan 2019 18:43:53 +0000 (19:43 +0100)
commit7aad0896a73e6957c8d5ef65d59b2d0891df1b9c
tree989ff3bc225ff3325c5ecd32c7391f3f06ce5861
parent7c72712b0f9df5789a1c8f21ca78bfd7a5177ef4
entry: Use a label as placeholder

This gives us a better way of choosing the color of the placeholder text
(and enabled general css styling on it of course).

Closes #378 (If you want to keep the placeholder on focused and empty
entries, just don't set the placeholder opacity to 0 in
entry:focus>placeholder. This is the default behavior but this commit
includes a rule in Adwaita to hide it.
gtk/gtkentry.c
gtk/theme/Adwaita/_common.scss